using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace Jaws.Core.Web.Entities.Roles
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    [XmlDataDirectory("roles")]
    public class Role : XmlBusinessBase<Role>
    {
        private List<string> _usernames;

        /// <summary>
        /// Initializes a new instance of the <see cref="Role"/> class.
        /// </summary>
        public Role()
        {
            _usernames = new List<string>();
        }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// Gets the users.
        /// </summary>
        /// <value>The users.</value>
        public List<string> Users
        {
            get { return _usernames; }
            set { _usernames = value; }
        }
    }
}